I feel this is a case of missing dependencies so what you need to do is you need to add the dependencies you used whilst creating the DLL into the metabot as well, by uploading them alongside your DLL in the assets view. In this case 'npgsql.dll'.
If you've built the DLL on another machine, you can - in addition to the steps above - also try adding the dependent DLLs to the PATH.