python sqlite cursor commit