Moved confs
Log template, logging, optimize sql requests, refs