Fix #43.

This makes the SQL code a lot more repetitive, but it's just for the
default fixture data, so hopefully it's not that big a deal. And now
it should work on any version of sqlite3 without throwing a syntax
error.