made db singleton. Changed db calls. aaaand a bit of refactoring.
Replaced hardcoded paths in pkg util and img to config paths. And put conf.Fill($struct) in each package.