Refactoring the abstract database manager because connecting once and staying connected for the entire life of the manager is not going to work. Part 1 of 2-part commit for fixing LOG4J2-407, LOG4J2-438, LOG4J2-442, LOG4J2-457, and LOG4J2-489.

git-svn-id: https://svn.apache.org/repos/asf/logging/log4j/log4j2/trunk@1565858 13f79535-47bb-0310-9956-ffa450edef68