Database Performance Homework