Filling main table successfully now with script