Added user logging
Fixed typo
Updated query to upsert
Added retrieval of logged in users
Added online users to dashboard