added an abstract class to be the database structure for the db drivers
postgres and mysql.