Implemented working with models data base