OP Database optimization.

Reduced 22 queries and 7s query time to 4 queries and 400ms response
time :). This is the most optimized we’re going to get the database now
I think.