Support REPLACE statement.

Adds support for the `REPLACE` statement (aka `INSERT OR REPLACE`).