more db auth check fixes