Store env name in database