Added more methods to DbFunction.java