totally restructured database architecture