remove sent command in db after command sent