well when making your plugin you need to do many things. One being write the plugin so it works meaning have you defined the actual database info. Next after defining the variable you then need to declare it properly in the vb4 template you need it and your plugin also needs to be set to the right location.
vb has tutorials on how to write vb4 plugins.