Completed database structure