Adding some DB Indexes and a debug log configuration.