split database in structure and data