This is a great database, but I think that I came into this conversation a little late. I have been working on a modification of this database in another thread. That thread had an encounter calculator, and while there are some interesting ideas here that I might have to steal, the sorting function I wrote for the other thread works a little slicker than this one in my opinion. I like the idea of encounter notes from your file, but there were none that I could find. You should play with what we have done with this database in this thread.
http://www.enworld.org/showthread.php?p=4287910#post4287910
Then you might like to modify it again. Collaborative work is super fun, and we often get back something way better than we originally thought we would. I would like to see what becomes of my mod of someone elses mod of your file.