Will run itself every 5 hours now; database queries improved