Used arrangeFlatData from metadata to arrange data.
Added DB Metadata builder and test.