Changed mongoose boilerplate