finished sql review