Changed order of test function, now testing ratio of next part of flight to previous, ie. if it's going faster will be >1, if it's going slower <1, twice as slow 0.5 - current cut off
Added parallel extraction of GPS data
Some small changes
Added section to retry 4 times to establish database connection before giving up