Complete the rebase for stapi-fixes.
Complete the rebase for stapi-fixes.

The merge messed up gen_refresh_ctable_sql. It was being called with the extra
"sql" parameter, but the routine itself was missing the changes to support that parameter.

flightaware/speedtables,flightaware/speedtables,flightaware/speedtables,flightaware/speedtables