Also exporting tags.

In a rather convoluted fashion, I'd say, but we're emulating a dump of the database here.