reorg notes and add some sql notes