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