Basic working connection to postgres server