Database System Homework