pearson-implementation-with-postgresql