This script implements scheduler for migrating data on PostgreSQL DB