finished sql assignment