finished sql changes