Restrict access to postgres server