Added posibilities to debug queries.

Fixed a bug where no channels and orders where calcualted because date(Y-m-d) goes till 00:00:00 and the cron jobs starts at this time. This means that the cron job may add a timestamp of 00:00:0001. Added the current request time of the query to query will provide the needed data.
-