finish sql updates