GET and PUT methods do stuff on products table of database