Detect what database you are connected to.
