update incorrectly named configure class, add lock suport for log writing and utilize new method run_query from thte DB object.