use promises already provided by mongoose instead of a custom wait.js() module

Use promises already provided by mongoose instead of a custom wait.js() module.