add and populate a table