flight search linked to database