fixed login, model has own db