change main log open-file type, and log db exceptions