it's impossible to use sqlite on heroku, so instead process locally and deal with JSON