changed API to exclude tables from insert