mediadb: Change to static library

API isn't complete enough yet for public export, so we'll keep it
internal for now.