Fix query() method

now returns the dbObject since it previosly returned the raw PDOStatement which didn't allow to perform the getLastInsertId() method.

Fixes issue #4