added database structure