Added export functionality to DatabaseManagement