declare mongo db url earlier