implement creating and exporting databases