adding a database cache for media metadata