*multi-threading for sqlite