DBVersion logic