open mongo connection on first require