update the way the index is created
slightly refactor to_json
update prod-seed.js

make sure entries go in the right db
make sure there are no duplicates