Return record id with the list operation
Fix _gmp_store and improve its readability