Adding database structure