fix environment_json on mysql (can't have default)
close AR connections after request completes
dsfdsgdsg