start work for table level commands, cleanup in db functions