Bugfix: connection leak in PostgreSQL database connection fixed. Reverted to fixed thresholds for determining class atypical hypothesis.