Made LCStoreDB try to use a separate DB connection

* This avoids breaking the main transaction in finishWrite().
* Also removed an unused variable in SqlBagOStuff.

Change-Id: Ia330ac362b080c1338616d95b793032c4752dc23
Merge "Made LCStoreDB try to use a separate DB connection"