replace query min file with updated version