connect to pg on every request