python sqlite update not working