moved @pictures from pictures_controller to db