Callback is only run on api when mongo is done starting up