addded PRIMARY KEY for messages