added postgresql configuration
added postgresql configuration
added history settings