add database structure