sqlite use now heap, corrected a tr beaviour on some distribution

Change-Id: I0684afa66ca1824ad5fe52687cfb1c2cddeb95c5