Read civicrm dsn and return different types of db setting