reduced number of DB calls, by using get_object_vars