Full untested php functionality for pulling a specific listings components from the database