Revert "Revert "Update BWmetadata_script.sql""

This reverts commit fb7924a204fd80c450cf98d9956a7f28b3169b61.