The beginnings of a sqlite3 writer.

It doesn't do the schedules yet, but it does the other data we've been
reading.