modify script to add updated merge matrices to database