complete database structure