added database export feature