Factor code to prepare SQLite statements into a separate function.
-rw-r--r-- 21 .gitignore
-rw-r--r-- 386 Makefile
-rw-r--r-- 1182 cleandb.sql
-rw-r--r-- 5772 design.txt
-rw-r--r-- 1404 format.cc
-rw-r--r-- 498 format.h
-rw-r--r-- 2032 format.txt
-rw-r--r-- 7018 localdb.cc
-rw-r--r-- 1284 localdb.h
-rw-r--r-- 1904 ref.cc
-rw-r--r-- 4158 ref.h
-rwxr-xr-x 15012 restore.pl
-rw-r--r-- 15459 scandir.cc
-rw-r--r-- 1123 schema.sql
-rw-r--r-- 11163 sha1.cc
-rw-r--r-- 3288 sha1.h
-rw-r--r-- 7523 store.cc
-rw-r--r-- 5148 store.h