users are now added to the db on signin (if not already existing). also added event for messages