db basic structure