Changing from @pictures to database model