Contains functions to check for repeats in DB