stmt_type get from Statement
remove debug outpu
rowcount value is -1 after cursor closed
add is_dirty flag