Updated mongodb to use mongoose
Fixed Conflicts in index