Code refactoring and improvements: logging, configurations, consts files + separate db insertion script.
Script description added.