insert product into database.
added update option