Implemented raw sql query for ChatMCAM._getList to speed up getUpdate

This is to avoid multiple connections to the database and also multiple
http header and JSON parsing (both quite slow).