protected function fetch($db, $query, array $args = array()) {
$stmt = $this
->prepareStatement($db, $query);
foreach ($args as $arg => $val) {
$stmt
->bindValue($arg, $val, is_int($val) ? \PDO::PARAM_INT : \PDO::PARAM_STR);
}
$stmt
->execute();
$return = $stmt
->fetchAll(\PDO::FETCH_ASSOC);
return $return;
}