diff --git mongodb.install mongodb.install
index 71ca1d2..57ce5b2 100644
--- mongodb.install
+++ mongodb.install
@@ -19,3 +19,23 @@ function mongodb_requirements($phase) {
   }
   return $requirements;
 }
+
+
+/**
+ * rename variable mongodb_collectionname => mongodb_watchdog_collectionname
+ */
+function mongodb_update_6001() {
+  $ret = array();
+  
+  // is it set with the old name?
+  $old_var = variable_get('mongodb_collectionname', NULL);
+  if (! is_null($old_var)) {
+    variable_set('mongodb_watchdog_collectionname', $old_var);
+    variable_del('mongodb_collectionname');    // clean up
+    $ret[] = array('query' => 'Renamed variable mongodb_collectionname to mongodb_watchdog_collectionname.', 'success' => TRUE);
+  }
+  else {
+    $ret[] = array('query' => 'Variable mongodb_collectionname not set, no need to rename.', 'success' => TRUE);
+  }
+  return $ret;
+}
\ No newline at end of file
diff --git mongodb_watchdog/mongodb_watchdog.admin.inc mongodb_watchdog/mongodb_watchdog.admin.inc
index f8de944..e84e36d 100644
--- mongodb_watchdog/mongodb_watchdog.admin.inc
+++ mongodb_watchdog/mongodb_watchdog.admin.inc
@@ -41,7 +41,7 @@ function mongodb_watchdog_overview() {
   $on_page = isset($_GET['page']) ? $_GET['page'] : 0;
 
   module_load_include('module', 'mongodb');
-  $cursor = mongodb_collection(variable_get('mongodb_collectionname', 'watchdog'))
+  $cursor = mongodb_collection(variable_get('mongodb_watchdog_collectionname', 'watchdog'))
     ->find(mongodb_watchdog_build_filter_query())
     ->limit($per_page)
     ->skip($on_page * $per_page)
@@ -220,7 +220,7 @@ function mongodb_watchdog_filter_form_submit($form, &$form_state) {
 function _mongodb_watchdog_get_message_types() {
   // As of version 1.0.1, the PHP driver doesn't expose the 'distinct' command.
   module_load_include('module', 'mongodb');
-  $collection = mongodb_collection(variable_get('mongodb_collectionname', 'watchdog'));
+  $collection = mongodb_collection(variable_get('mongodb_watchdog_collectionname', 'watchdog'));
   $result = $collection->db->command(array('distinct' => $collection->getName(), 'key' => 'type'));
   return $result['values'];
 }
@@ -260,7 +260,7 @@ function mongodb_watchdog_clear_log_form($form_state = array()) {
  */
 function mongodb_watchdog_clear_log_submit() {
   try {
-    $collection = mongodb_collection(variable_get('mongodb_collectionname', 'watchdog'));
+    $collection = mongodb_collection(variable_get('mongodb_watchdog_collectionname', 'watchdog'));
     $collection->db->dropCollection($collection->getName());
 
     drupal_set_message(t('MongoDB log cleared.'));
diff --git mongodb_watchdog/mongodb_watchdog.module mongodb_watchdog/mongodb_watchdog.module
index 661cd23..367a14a 100644
--- mongodb_watchdog/mongodb_watchdog.module
+++ mongodb_watchdog/mongodb_watchdog.module
@@ -60,6 +60,6 @@ function mongodb_watchdog_menu_alter(&$items) {
  */
 function mongodb_watchdog_watchdog(array $log_entry) {
   module_load_include('module', 'mongodb');
-  $collection = mongodb_collection(variable_get('mongodb_collectionname', 'watchdog'));
+  $collection = mongodb_collection(variable_get('mongodb_watchdog_collectionname', 'watchdog'));
   $collection->insert((array) $log_entry);
 }
