Properly synchronize listing/mail indexes with the database