Added how to update database and offline handling