Added option to export the DB