adding SQL to create data table