store context events in the database if the server is online but the
user is not authenticated yet.