vko 8#2

changed all direct db queries to use PDO library