When creating a database for mame, mGalaxy is waiting for: history.dat, nplayers.ini, Catver.ini (notice the capital 'C') to be present in the chosen mame application folder.
If it can't find them, mGalaxy will download them from the mGalaxy server. In that case, this is the latest version of all those file (synced to the latest mame version) which are downloaded.
So, please try either with and 'old' version of mame with the corresponding file version for history.dat, nplayers.ini, Catver.ini
...or try with the latest version of mame with no history.dat, nplayers.ini, Catver.ini files in the mame folder to force mGalaxy to download them.