updated table scripts