init from IndexDbDemo