Got DB backend working.

Testing with SQLite only for now. Need to setup MySQL and PostgreSQL on
both CI environments.