save photo name to sqlite db