Refactor CVideoDatabase::GetValueString

Both functions now call a common routine to process the value string.

Also correct a missing pass by reference on the newer version of
GetValueString.