Homework 7 and databases