only do single SQL query for add or delete