Re-did get_subnames class so that it made only two SQL queries each time the method is called instead of one per user.