This adds a private interface that consumers can QI to to get access to the internal database connection. r=dietrich