Change PDO fetch mode for select function to PDO::FETCH_CLASS