added photo & favorite table scripts