added search
added inexeddb and priority change