update database structure