FIX: MAINDB.
Added CFG_ENV.