Improved fetcher script, optimised some queries; fixed flags on flights page