three minor bug fixes: 1. allow table_name to be passed into #custom_config; 2. ensure all config keys passed in are strings, 3. ensure we are connected before we try to clear.