Fixed Time Report Tables and some bad SQL queries.
Merge
if statement removed since it did nothing