change database structure