store offset history in sqlite