fix Connection deprecation warning
better error message for illegal usage of getByValue/insertBy
fix Connection deprecation