Update to index and db