updated table creater and sql validate