Changed tmpdir path to toppath in dashboard:database-changed? to correct run tab slowness. Removed 2 duplicate functions.