add sql function to get favorites list of events per user