Updated the dashboard view to run raw sql (for postgres) to generate the deployment history data. This resolves a performance issue for postgres users due to a nested for loop call to the ORM.