Added a preliminary database model.

Just working with SQLite for now. Should really have configuration
options split out into YAML or something and support PostgreSQL (as well
as configurable database paths/connection info).
Added model to controller.
Added basic registration.
Now ignoring databases.