Fixed sql files to add support for string thresholds and notifications.