Add multithread database