Refactor "rhizome list" command

Move output formatting into commandline.c, leave database query in
rhizome_database.c