var scoping in getDeploySchemaSQL() of db gateways