Compacted report db querys and cleanup imports