added function to add to preferences list in user db
created function to remove an item from preferences