Input photo into DB