Database-driven Safe Flight Envelope Protection for Impaired Aircraft