Simplified algorithm for building Table Queries
Added cron job for syncing data every hour