Added handlers and a new table for recording how much time someone spends logged in.