added database compression