add document_id to params as heroku couldn't write to it