Add retrieval methods to MediaDB

Now we can deserialize and retrieve data from our database. Note
this is again heavily derived from Buxton deserialization code.