Database structure encapsulator