Polished Postgres connection; UI changes