Prepopulate sqlite database.

This version is slightly less brittle than @peterjc's initial attempts because when used this way, the database should auto-update on startup as new revisions are committed.