update database layout and flowchart