public function selectAll($sql, $arg1 = null, $arg2 = null)
{
$stmt = $this->execute($sql, $arg1, $arg2);
if (!$stmt) {
return array();
}
$result = $stmt->fetchAll(PDO::FETCH_ASSOC);
// Required to really close the connection.
$stmt = null;
return $result;
}