def METHOD_NAME(self, query: str) -> Response:
    """
    Receive raw query and act upon it somehow.
    Args:
        query (Any): query in SurrealQL to execute
    Returns:
        HandlerResponse
    """
    need_to_close = self.is_connected is False
    conn = self.connect()
    cur = conn.cursor()
    try:
        cur.execute(query)
        result = cur.fetchall()
        if result:
            response = Response(
                RESPONSE_TYPE.TABLE,
                data_frame=pd.DataFrame(
                    result,
                    columns=[x[0] for x in cur.description],
                )
            )
        else:
            response = Response(RESPONSE_TYPE.OK)
    except Exception as e:
        log.logger.error(f'Error running query: {query} on SurrealDB!')
        response = Response(
            RESPONSE_TYPE.ERROR,
            error_message=str(e)
        )
    cur.close()
    if need_to_close is True:
        self.disconnect()
    return response