maintain a open instance to the database, close on destroy

Change-Id: I0594964ee85f6b73f7354033cc3c7fe67651e3cd