Store and retrieve user data from mongodb collection