added db and resources
photo and thumb resizing