small db functionality with shelves