Plugin fix + db fix

Fixed chat issue not logged in, chat is closed default, fixed missing path obj (db)