Should remove some unneeded SQL calls, fixes field type translation and comparing tables when the old file was a package.