init mongodb connection on first request (not on startup)