Added postgresql connection for dx-filtering and created Logger.
Fixed #3.