Adding database structure.