corrected problem with wiping db
fixed "dashboard" link when you are in the conext of a dept