Extract mongo uri into its own module.