Active Record implementation for indexed db