Add sql output for afterflight
Use table length instead of random hard-coded number leftover from testing, and accept a flight name.