hotupgrade cleared env variables cleared

I keep credentials in ets other than env, because  they were cleared once i made an upgrade to my application.

Maybe i have upgraded in a wrong way, but keeping it in ets really solved my problem.