updates to mediadb and collectiongallery index.html
Still needs adjustments for new API and updates to template pulling