some work on enhacing the api a bit (yes, this all needs some refactoring, and definitely massive performance optimization such as using DB indexes for commonly filtered tables... it is on our todo list)