changed database structure