Models to a separate file
Added new queries to the chat manager. Also new fields.