store data into index db