move table 'objects' porcess to function 'get_instance_object_id'