created a database structure