add mongoose and mongodb functionality to server staging