a fix on sqlite connection