moved mongo connection to config file