update database layout & access pattern