fix #432. Create a checkpoint before executing a delete query