Insert and save refactoring

split it into few lines
1st - process insert
2nd process repopulating

it will look  more readable