use global database connection instead of exporting from the dashboard module