Updated mongo connections to use host - and abstracted