Fixed updating user preferences and sending emails
Fixed bug in searching connections