struct used for memory db object