Add test and fix for the deprecated getDatabaseHost
Add test and fix for the deprecated getGeometryType