common method for getting jdbc scheme