Js fix bulk upload

This refactors the StoreInAmberDB method to allow the bulk uploader to store master and comaster metadata separately. This is needed as the files can e ingested in either order and using bulk upload the metadata generation is moved forward to coincide with the upload