added installation of models in the database
added hook for public model install