Make sure sqlite statement is finalized