added writings and photos model without paperclip