do not close the  db connection - may leak the connections, but does not slow down the normal operation; use it this way for tests, until better solution for db type detection is found