Building structure around database