Mongodb connection and test url call