working on database section of ch5