Console App db connection fixes.