Extract mongo uri into its own module.

:+1: I will extract it.