add #create_table method to namespace that creates table according to fields