Refactored sqlite_corpus slightly, added unit tests.