Auto gen some of the tables but too slow to do everytime wip