add MediaDao, MediaESDao, and test