Use the mimedb instead of file endings