Add models for messages.
Model update
Fixed the bug that object name is a mysql key.
Fixed conflicts