fixed sqlite connection setup interface bugs.

Change-Id: Ib162e8f8e812034fa86af15b62923e85d9b59a78