change to universal database class (PDO)