Fix sqlite database leak

Change-Id: I2fbc43ac090ef14bd267ee70e93825d3189ad585
make it privileged

Change-Id: I4ee65d4dfd87a328a35084d8e7c0e309bb37d621