Add CAPTCHA database store

This makes use of the database to store CAPTCHAs, rather than the
default in-memory map.

Ref #71