Draft 1 of valid db check