Added insert logic fr primitive types in couchdb