Updated version for sql fix