Fix setPhoto DB Func