adding end after if else statement in recipes/mongo_gem