The mayor on the campaign trail called the database a “vast dragnet” and said his administration wouldn’t use the database.