i have written the functionality for storing wishlist in db