Fix to full database exporting.