Changed db format to use variable length numbers