add sql to create record table