Moving @pictures in the pictures_controller.rb into database