Added Select and ListTableCategories

Will probably start work on command line interface. Was going to do a
GUI, but I'm too lazy, and I only had a week before this was due anyway.