update last n builds query