Finished update table logic and erb