mutexed insertion and setup sqlite connection to nomutex