record modification & save resize image to DB

Provide record modification function, and when add or edit a record,
selecting a new image triggers resize image service, which crop image
and put a 300x300 square into IndexedDB. The list page will only load
these resized images from DB rather than the original image files, so
that Chrome will not be exthausted by a bunch of big pictures.