improved the code of the Apache Dbutils