if no url for mongodb use process.env.MONGODB_URI or mongolab equivalent