Added functionality to save products into database via ajax request.