Modified db and inherit from DB_class for all relational classes
Merged conflicts