Changes to chat plugin, database, rank