set EVN in database