Bugfix in workoutdatadb