Fix some admin scripts around schema updates