lib: replace two PG::Connection.connect with PG::Connection.new.