Limit is not allowed in update statements in postgresql