Remove database reference passed to Model()