Insert functionality added, response codes added