completes mongo integration