backport/rename-sqlite-db-handle