exporting db structure