Use util.format to build sql statements