adding support for querying db for specific flights