Added check for userdb.json and config.json