second db check