database environment and basic models