ensuring env production is set for db transactions