clean local redirections and automatique creation of table