Moving queue to indexed db