Implement database export