sample code for indexed db