sql check in install wrong