Sync db with db spec doc
Less conversions between signed/unsigned types.