delete clears cache
delete adds sql commands
fixup for delete