Update database structure