run only on core databases
also returns the name of the database where there was a problem, if we decide to run on other types of databases at a later time