Parallel version - not run (untested)
Added database access bit
Working version of script, only on sample of ten flights right now though.
Working version, still need code to output to database