Misc changes to BrowseMusicAdapter.
Code cleanup and rearrangement in DatabaseHandler.