More work on converting Course/Topic to sqlalchemy.