Adding scheduler for database Gap purging