add user module to chat
messages now stored in database