Extract database data

Recovered (mostly) from Coachella.  This seemed like an a task I could
handle.  Using /sdk/tools/sqlite3 doesn't work on cygwin, install the
cygwin version.  Also, there's no sqlite3 installed on my device, bad
documentation!