build arch about how to extract data from db