use more honest db check