Fix bug in add_row;remove_row used by C++ QueryServer