Added is_in_class helper method to db1.py to test whether a user is in a class