added updated to index and the database