Checking if title exists in the database already