A deductive database for extensional λ-calculus