adds databases compaction after background sync