rm debug code
return null when build index sql faild.