Fall back option for bad sql is added