Ignore duplicate inserts in file cache and mime type (WIP)

:construction: WIP

Try and insert into oc_filecache/oc_mimetype. If it fails, try and select the id of the existing entry.
Doesn't seem to work. (MySQL backend)