def getQuery(self, query):
        """DB query where the results need to return (e.g. SELECT)

        Parameters
        ----------
        query : str
            SQL query


        Returns
        -------
        psycopg2 resultset

        """
        with self.conn:
            with self.conn.cursor() as cur:
                cur.execute(query)
                return(cur.fetchall())