Changed SQL commands for Updated Table