Improved data generation for test_mmex_db