Change add media function to use DBIO.Types enum