add logic to check for duplicate flight numbers in add_to_database method