Added Database and Connection config models. Added some reverse-modelling stuff into Model class.