Fix executeNonQuery functino on constructor template