Add an abstract class called MainModel

Most of the models extends Mainmodel in order to configure the menu and
the DB connection in a singel file