externalizing session key for heroku env and index pg cleanup