#56 #61 specified PhotoDao and change logic of upload