Updating the Store Index to query the database