updated sql plugin to respect config changes