Fix for retrieving dbname from settings.json if dbname is empty on the request URL