Automatically create the database on startup

Currently, tests will pass (because everything's mocked), but the actual application doesn't - nothing ever creates a run-time database. I'm not sure if this is the best way to do it or not, but it does work.