DB Assignment 1 final version