Updated database call to include only training that has not been passed