add query_id / query_id_key / insert / delete_id_key / delete_id API