set properly checks keys against main database