Moving @pictures controller in pictures_controller.rb into database