connecting to MongoDB working on the profile view page