Generate discussion database