Chat message database save

Chat messages are now stored in the database and formatted properly
Ending part 1