[Playlist Sorting] alexandria refactor: moving versioning detection &
playlist item index generation to lowest level in database, made
mid-level database operations into static methods in XXXDB.java classes,
and high-level db entities remained largely untouched.