Add sqlite3 amalgemation code.

This adds the sqlite3 amalgemation code referred to in
https://github.com/sholsapp/gallocy/issues/2 but not much more.