public function tables($args)
 {
     // Only save table names that we've got access to (which should be all).
     $db = new Database($this->wpdb);
     $tables = array_intersect($db->get_table_names(), $_POST['managed_tables']);
     update_option(TABULATE_SLUG . '_managed_tables', $tables);
     // Inform the user and redirect.
     $template = new Template('schema.html');
     $template->add_notice('updated', 'Table list saved.');
     wp_redirect(admin_url('admin.php?page=tabulate_schema'));
 }