improved performance and added some new features

Improved performance by various database optimisations.
Implemented the option to select what fields to search in.
Implemented the option to select what part of the activity data the api should return
Drop this comment please, it's unnecessary