Fixed some typo-style bugs, switched to a single query to delete all the transients at once. Delete 500 at a time.