messaging+datastructure

messages
---------------
id
to_id
from_id user
message
timestamp

guest
---------
id
session_id
ip address
name

friends
----------
id
user_id
user_id