Fixed the delete statement; now handled by insert.