Reorganize. List DB functionality. Pre-sorted add (fixes #2).