Implemented top rating functionality.
Minor database optimizations and removed log statement from POST /rate endpoint.
Merge branch 'feature/top' into develop