Assignment 3 for database class