Added new connection class for postgres