Fix window destroy, fix sqlite set
Remove obsolete comment
Complete sync working in limited tests!