db queue impl