add mongo url for heroku and funcs for admin check