removing code. genereating semantically cirrect insert queries