database change for offline