Moving @pictures in pictures_controller.rb into database
Refactoring to save new pictures in database