Update to database structure