Database notes for chapt 4