works to add and remove from db