Changed DBInserts. Added try-catch block to all metadata inserts