Add skeleton for mediadb

We'll use MediaDB to store all media information to save us from
performing expensive queries on every start.