libdb: remove deprecated function + fix nasty bug + cleanup
midiogre: support for sorting by date and alphabetical