use 32bit uint as postgres does not support uint64