Merged stdFormat() with stdErr() since it's only used for errors
Removed ActiveDB method since the reference to $.data() is lost once returned