Adds mongo link. Fixes subscribe endpoint to save to db