fixed errors in the ref data manager
Merge branch 'refdata-derived-models' into jobs-derived-models
set_result_set implemented.