migration to remove obsolete tables from the database