fixed so that queue is updated in database after editing a queue