compute data with indexed db