Fixed indentation in ExportToDatabase