moving @pictures in pictures_controller into db