improved the code of the apache dbutils