Finished linking dashboard to db