Initial .net version, updated db format so c# can handle it