database structure and data import