starting mongodb connection (pretty rough still)