fix in isInDB