Merge pull request #1372 from HMS-Formidable/dev-postgresql

Add the implementations for the unsupervised model