Moving DB init code to function.
Adding test.db to gitignore.
Adding base Sphinx docs.