Database: move main_language_id to CLASS_VERSIONS table so that each update has its own mainlanguage