fix up table constraints and create new table for vuln txt to reduce storage