Databases + Data structures and algorithms homework