Adds retrieval of the featured image.
Retrieves the thumbnail image meta data.
Filters out the paths and filenames.
Moves the database code into a class for easier future maintenance.