Db exception magic for windows