bug 824061 - more complete error checking, allow db auth info override