Updated assignment 4 sql