Allow unspecified values in replace_codings
Corrected update sql columns
Removed dead code, rewritten update_values