Update Change to addAssignment in Database class