Add support for sqlite affected rows