[MTG] Added a format version number to the version file, so changes in how cards are stored also trigger a database update; Minor cleanup and efficiency improvements