assign db to Model.db