Allow for REPLACE queries

Conflicts:
	index.js
SQL error masked by TypeError
Move differing run/each behaviour into helpers
Bugfix: invalid SQL results in type error

Conflicts:
	index.js