This is a mixin - it replaces the unimplemented "validate_key_code" interface method from the abstract door class with code that actually accesses the sqlalchemy stuff. This mixin could be replaced with something that access a Mongo database, a CSV file, etc.