don't clean database if txid hasn't changed