bugfixing, dropdown select for category

fixed several query's, added a drop-down-selector for categories