adding a model and putting it in the db