def create_license_link(self, repo_base, repo, license_id):
        '''
        Creates a new license
        '''

        # check if link already exists
        query = ('SELECT license_link_id, repo_base, repo, license_id '
                 'FROM %s.%s where '
                 'repo_base = %s and repo = %s and license_id = %s;')
        params = (
                AsIs(settings.LICENSE_SCHEMA),
                AsIs(settings.LICENSE_LINK_TABLE),
                repo_base, repo, license_id)

        res = self.execute_sql(query, params)

        if res['tuples']:
            return res['status']

        query = (
                'INSERT INTO dh_public.license_link '
                '(repo_base, repo, license_id) '
                'values (%s, %s, %s)')
        params = (repo_base, repo, license_id)

        res = self.execute_sql(query, params)

        return res['status']