Move the db base class to the classes directory