Fixes regkey get for earlier versions of OS. Also patched parsing issue ...

...for database values.