Add and remove from queue in backend db