encapsulated database