[ORB-237] Changed schema of versions tables, migrated existing data, shorterned mysql identifier names to prevent 64 char mysql limit errors