Use mysql_database core state instead of mysql.db_* which weren't available on some minion.