Here is a very little utility i made to work on a database file (mame dat's and emulationstation gamelist.xml as of now).
This allow you to remove clones, filter neogeo/cps... games etc. and either export the resulting database file to be used in clrmamepro, or copy the filtered rom's from a source folder to a destination folder.
Here is a (crappy) video i made to show how to make a neogeo database with clones removed, from latest mame database: https://www.loom.com/share/201bb24881134311b63898561ded1e4c
Source code: https://github.com/Cpasjuste/retrofilter