this version can automatically insert outliers into DB