assigned nullptr to _database and _query_stmt upon flushing so that if flush gets called again, will not throw an exception