configure metering with postgresql