modify database structure and update data