fix db truncation blunder