added SQL statements

added flight retrieval