simple table updated to use connection