env dbpath and singlethread