moving @pictures in controller into DB