Created Environment class and use it inside database and email classes