m_mysql Fix crash on rehash when the database tags have been changed in the config