[OE-3987] migration fixes and updated verifyversiontables command script