So, this is pretty small, but why'd you start it at 0, only to increment before you could ever assign that value? Couldn't you just set it to 1 initially, then only increment after a project has been created and given that id number?