Added backend functionality for favorites list