U/salnikov/dm 621

In DEBUG log mode, it would be fine to have instructions that allow user to easily reproduce loader code behaviour (if it fails, but it may be the case while, for example, testing development branch). So dumping SQL queries seems a good proposal to me.