now using require to get queue and IDBStore + added to dependencies