Synhcronzied cleanupDatabase script with workloadGenerator for WorkloadGenerator