Started adding tests. Refactored code quite a bit. Added database whitelist/blacklist config options.