Optimized topics_sinse_yesterday from 5 queries to 3
Fixed a bunch of syntax and logic mistakes in queries