correction 23

- fixed the perfomnce issue with the DB queries in a loop
- added userids in database
- ratingsevents got their own entry in the DB
- added functions courseboard_user_outline and courseboard_user_complete