Logging fixes; Quote app example fixed to properly save dbname