Fix bug in database seeding

Fixes #218