edited sql tables structures