NWNX

Neverwinter Nights Extender (NWNX) is software that allows server admins to add extra functionality to the NWN1 dedicated server. It dynamically loads libraries into the server that can perform various tasks, like ODBC database connectivity.

The NWNX developers are planning a version for NWN2, and Obsidian has stated that it should work with NWN2 (but they haven't tested it).