@classmethod
def grant_usage_privileges(cls, cur, schema_name, roles):
    """
        Sets search path
        """
    cur.execute(
        'GRANT USAGE ON SCHEMA {0} TO {1};GRANT EXECUTE ON ALL FUNCTIONS IN SCHEMA {0} TO {1};'
        .format(schema_name, roles))
