parsing correct field for db name

parsing the correct field for metastore db name:

```ruby
1.9.3p374 :003 > db_name = jdo_array[2].split('/').last.split('?').first
 => "%host.service.mysql-server%" 
1.9.3p374 :004 > db_name3 = jdo_array[3].split('/').last.split('?').first
 => "hive" 
```