priority will be updated in database on change