def METHOD_NAME(self, query: str) -> StatusResponse:
    """Receive raw query and act upon it somehow.
    Args:
        query (Any): query in native format (str for sql databases,
            dict for mongo, etc)
    Returns:
        HandlerResponse
    """
    need_to_close = self.is_connected is False
    conn = self.connect()
    with conn.cursor() as cur:
        try:
            cur.execute(query)
            if cur.rowcount >0 and query.upper().startswith('SELECT') :
                result = cur.fetchall() 
                response = Response(
                    RESPONSE_TYPE.TABLE,
                    data_frame=pd.DataFrame(
                        result,
                        columns=[x[0] for x in cur.description]
                    )
                )
            else:
                response = Response(RESPONSE_TYPE.OK)
            self.connection.commit()
        except Exception as e:
            log.logger.error(f'Error running query: {query} on {self.database}!')
            response = Response(
                RESPONSE_TYPE.ERROR,
                error_message=str(e)
            )
            self.connection.rollback()
    if need_to_close is True:
        self.disconnect()
    return response