Fix a problem with the build-sql task