Refactored LspDbVersion parser.

Change-Id: Iebc6cf8626ae06b757c0f2f57e1365b3a60ba3a3
Signed-off-by: Dana Kutenicsova <dkutenic@cisco.com>