used internal methods to build db info
used internal methods to build db info
fixed bad attr