rundb, inmem and main structures written