Breaking out database tasks into their own classes.

...the package version of the dashboard does not support postgres.