SQL UPDATE helper f-me/carma#1352