critical bug fix #181 for sql schema updates