If you are using $this->db->insert, you don't need $this->db->escape because $this->db->insert is already escaping the data for you. That's why you are getting quotes. You are escaping data that was already escaped.