add sql for build db