diff --git a/notebooks/LPD/LPDChar_Darks_NBC.ipynb b/notebooks/LPD/LPDChar_Darks_NBC.ipynb
index 819065b38658ae829d80b800a9c6089b461e2f21..8f793f13bf319d7d5ed59f78c92f1ed489b2afae 100644
--- a/notebooks/LPD/LPDChar_Darks_NBC.ipynb
+++ b/notebooks/LPD/LPDChar_Darks_NBC.ipynb
@@ -52,21 +52,19 @@
   {
    "cell_type": "code",
    "execution_count": null,
-   "metadata": {
-    "collapsed": true
-   },
+   "metadata": {},
    "outputs": [],
    "source": [
     "cluster_profile = \"noDB\" # The ipcluster profile to use\n",
-    "in_folder = \"/gpfs/exfel/exp/FXE/201930/p900063/raw\" # path to input data, required\n",
+    "in_folder = \"/gpfs/exfel/exp/FXE/201931/p900088/raw\" # path to input data, required\n",
     "out_folder = \"/gpfs/exfel/data/scratch/karnem/LPD/\" # path to output to, required\n",
     "sequences = [0] # sequence files to evaluate\n",
     "modules = [-1] # list of modules to evaluate, RANGE ALLOWED\n",
     "\n",
     "capacitor_setting = 5 # capacitor_setting for which data was taken, required\n",
-    "run_high = 358 # run number in which high gain data was recorded, required\n",
-    "run_med = 359 # run number in which medium gain data was recorded, required\n",
-    "run_low = 360 # run number in which low gain data was recorded, required\n",
+    "run_high = 112 # run number in which high gain data was recorded, required\n",
+    "run_med = 113 # run number in which medium gain data was recorded, required\n",
+    "run_low = 114 # run number in which low gain data was recorded, required\n",
     "\n",
     "mem_cells = 512 # number of memory cells used\n",
     "local_output = True # output constants locally\n",
@@ -120,7 +118,8 @@
     "from cal_tools.tools import (gain_map_files, parse_runs, \n",
     "                             run_prop_seq_from_path, \n",
     "                             get_notebook_name, \n",
-    "                             get_dir_creation_date, get_from_db)\n",
+    "                             get_dir_creation_date, get_from_db,\n",
+    "                             get_random_db_interface)\n",
     "from cal_tools.influx import InfluxLogger\n",
     "from cal_tools.enums import BadPixels\n",
     "from cal_tools.plotting import (show_overview, plot_badpix_3d, \n",
@@ -130,9 +129,7 @@
   {
    "cell_type": "code",
    "execution_count": null,
-   "metadata": {
-    "collapsed": true
-   },
+   "metadata": {},
    "outputs": [],
    "source": [
     "client = Client(profile=cluster_profile)\n",
@@ -333,13 +330,13 @@
     "                (offset.shape[0], offset.shape[1], offset.shape[2], 3))\n",
     "            noise_g[cap][qm] = np.zeros_like(offset_g[cap][qm])\n",
     "            badpix_g[cap][qm] = np.zeros_like(offset_g[cap][qm])\n",
-    "            data_g[cap][qm] = np.zeros((data.shape[0], 3))\n",
+    "            data_g[cap][qm] = np.zeros((ntrains, 3))\n",
     "            ntest_g[cap][qm] = np.zeros_like(offset_g[cap][qm])\n",
     "\n",
     "        offset_g[cap][qm][..., gg] = offset\n",
     "        noise_g[cap][qm][..., gg] = noise\n",
     "        badpix_g[cap][qm][..., gg] = bp\n",
-    "        data_g[cap][qm][..., gg] = data\n",
+    "        data_g[cap][qm][:data.shape[0], gg] = data\n",
     "        ntest_g[cap][qm][..., gg] = normal\n",
     "\n",
     "        hn, cn = np.histogram(data, bins=20)\n",
diff --git a/notebooks/LPD/LPDChar_Darks_Summary_NBC.ipynb b/notebooks/LPD/LPDChar_Darks_Summary_NBC.ipynb
index 2f1044a4201c8021f914d0921d9363287133a43b..cb30454e34b6b65d67573cbebb728192e8a72fdc 100644
--- a/notebooks/LPD/LPDChar_Darks_Summary_NBC.ipynb
+++ b/notebooks/LPD/LPDChar_Darks_Summary_NBC.ipynb
@@ -10,9 +10,7 @@
   {
    "cell_type": "code",
    "execution_count": null,
-   "metadata": {
-    "collapsed": true
-   },
+   "metadata": {},
    "outputs": [],
    "source": [
     "cluster_profile = \"noDB\" # The ipcluster profile to use\n",