Fix bug in mimetypes

Accidentally sent file extension instead of mime type
Fixed a bug that caused only half the mime types to be added to a
datasource