adding registered students count field to course to reduce sql queries
using the new total_registered_students field in the relevant places
is_almost_full course property is false when course is full
casting registration count and max students to float so is_almost_full returns the correct value