base class for pillows that save to SQL