replace 'key' to config_item('rest_key_column')

'key' column value should get from the config variable
replace 'key' to config_item('rest_key_column')