updated sqlquery and database classes to actually take advantage of PDO