Update to convert mongoose models to normal models