fixed the user id issue
sending events data to the database