Using long instead of int for checkpoint numbers in sql and mongo storage.