Split mongodb part from add_initial_user