database confusion notes