Improve SQLite support by unifying DB updating.