Fixed a broken update sql-query