added mongoose support and few optimizations for project db