working on the downloads, created a base resource class to use for creating the db objects.