Sqlite logging at 100 kS/s. Queue not empty when log ends