Finish database object revision support for SQLite and tests for it.