check that userdb_mongo_database is set