duplicate check, memcache flush prep/check db