Changed db_delete() for db_truncate() on hook_flush_caches().