Move get_uint_value so it's near the only function that uses it
Use MMDB_get_value in get_uint_value, and do pass NULL as last arg