db check fixed