add db + all structures