added storage on indexedDB, synchronisation engine and updated query engine