new database class to support pdo