added message table to sql script
messages table works