returning edited products from the database