Fixed curation step updating script

added cmdline args
fixed json 2 mysql escapes
fixed hibernate 2 java obj conversion