Updated mongoose model code tpl

To be tested with newly generated models.