To correct something like this in the database you could.
Do a search for all of the meta_name column and replace
$old_meta_name
with $new_meta_name
'_'.$old_meta_name
with '_'.$new_meta_name
then search the meta_value column and replace
$old_field_key
with $new_field_key
~JH