module to handle the logic of opening a leveldown instance