Fixes a bad string comparison between field names in SqlDatabase.