Checking if the movie already exists in the database