Add id rebuilding to entry add, that way we can be sure ids won't start on 1 instead of 0