Get the params to pass to psycopg2.connect() based on passed-in vals
        from yaml settings file

def _get_connect_kwargs(self, host, port, user, password, database_url):
        """
        Get the params to pass to psycopg2.connect() based on passed-in vals
        from yaml settings file
        """
        if database_url:
            return {'dsn': database_url}

        if not host:
            raise CheckException("Please specify a PgBouncer host to connect to.")

        if not user:
            raise CheckException("Please specify a user to connect to PgBouncer as.")

        if host in ('localhost', '127.0.0.1') and password == '':
            # Use ident method
            return {'dsn': "user={} dbname={}".format(user, self.DB_NAME)}

        if port:
            return {'host': host, 'user': user, 'password': password, 'database': self.DB_NAME, 'port': port}

        return {'host': host, 'user': user, 'password': password, 'database': self.DB_NAME}