fix moped update query