title: Unable to insert into DB from Mule Groovy
body: <p>I have a Database table <strong>GroovyTest</strong> as following :-</p>
  
  <p><img src="https://i.stack.imgur.com/RVsuC.jpg" alt="enter image description here"></p>
  
  <p>As you can see it has 4 fields :- <strong>ID</strong>, <strong>NAME</strong>,<strong>AGE</strong> and <strong>DESIGNATION</strong> and among them <strong>ID</strong> and <strong>AGE</strong> are integer type and remaining <strong>NAME</strong> and <strong>DESIGNATION</strong> are String</p>
  
  <p>Now I have the following Mule flow which is trying to insert the values in this DB using Groovy Script:-</p>
  
  <pre><code>&lt;flow name="GroovyWithJDBCFlow1" doc:name="GroovyWithJDBCFlow1"&gt;
      &lt;http:inbound-endpoint exchange-pattern="request-response" host="localhost" port="8082" path="groovy" doc:name="HTTP"/&gt;
    &lt;scripting:component doc:name="Initialise Database"&gt; 
              &lt;scripting:script engine="Groovy"&gt;
                  &lt;scripting:text&gt;&lt;![CDATA[
                 jdbcConnector = muleContext.getRegistry().lookupConnector("Database_Global");
                  qr = jdbcConnector.getQueryRunner();
                  conn = jdbcConnector.getConnection();
                  qr.update(conn, "INSERT INTO GroovyTest VALUES(message.getInboundProperty('id'),message.getInboundProperty('name'),message.getInboundProperty('age'),message.getInboundProperty('designation'))")
  return "Inserted into Table";]]&gt;&lt;/scripting:text&gt;
         &lt;/scripting:script&gt;  
          &lt;/scripting:component&gt;
  &lt;/flow&gt;
  </code></pre>
  
  <p>Now when I trigger the flow with following url :- <code>http://localhost:8082/groovy/?method=insert&amp;id=1&amp;name=Anirban&amp;age=29&amp;designation=SoftwareEngineer</code></p>
  
  <p>I am getting following exception :-</p>
  
  <pre><code>Root Exception stack trace:
  com.microsoft.sqlserver.jdbc.SQLServerException: Cannot find either column "message" or the user-defined function or aggregate "message.getInboundProperty", or the name is ambiguous.
      at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:196)
      at com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(SQLServerStatement.java:1454)
      at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.doExecutePreparedStatement(SQLServerPreparedStatement.java:388)
      + 3 more (set debug level logging or '-Dmule.verbose.exceptions=true' for everything)
  ********************************************************************************
  </code></pre>
  
  <p>But if I hardcode the value as following :-<code>qr.update(conn, "INSERT INTO GroovyTest VALUES(5,'testvalue',333,'test')");</code> it's getting inserted without any issue ..</p>
  
  <p>Also I checked the log .. I am getting all the inbound properties value correctly but I am unable to make it insert in DB using Groovy </p>
  
  <p>Please help</p>