created database structure