Fix secondary indexes operations when the db/table is renamed + Fix for updates
Fix destroy