sync, query fixed. CRON implemented.

major update: see PROGRESS_FILE