replaced sql-update with correct version