fix a few bugs (commit: ab21965)
fix triggers not initializing statement parameters (commit: 3c21b9c)