updated DatabaseExporter in accordance with the change of the SQL schema