MDL-35851 lesson mod: separate chained ifs to individual validation.
make database upgrade as one continues process