Updated SQL script for workouts