Change ctructure of db