Added separate db utility classses, logging utility and curl wrapper