database: added DBConnRef wrapper to manage calling reuseConnection()

Change-Id: Ifc9db62d1ac34d0c6a072d6f2d05bdcf73af14bb
Merge "database: added DBConnRef wrapper to manage calling reuseConnection()"