Moving @pictures in pictures_controller.rb in database
refactoring to save new pictures in database