added table creation to loader