use exported postgres variable