Bitflags for Environment and Database