Added call to flushCache before executing statements