fix db truncate for sqlite