add sqlite3_changes native function

This function can be used to get the number of rows inserted or updated
by the last executed statement.