fix index db name, wait for index before queries
refactor main key, fix promise for waitIndex
test with Facade OK
add log, add retry feature
add Facade to test, test KO with Facade, OK with memory