Last week I went looking for better logging software. I have been using xLog for the last year and it did a good job but I found it lacking in features that I wanted.
I found many solutions that did less than xLog in my search but finally found CQRLOG which is exactly what I was looking for. This logging software does pretty much everything I wanted. It's built on a SQL database so running custom queries is easy. There are lots of statistics (DXCC and WAS, just to name a couple) that you can pull from the software and it fully supports LoTW!
I'd recommend giving CQRLOG a try if you are looking for a really good contact logging software.