added capability to view models in db