improved DatabaseHash