Replace SAVEPOINT with BEGIN to support older versions of SQLite.

Nested transactions (via SAVEPOINT) are not supported in SQLite
releases older than version 3.6.8.