Use a single function to transition from IO to DB Queue