title: Storing an image path in a SQL database
body: <p>I have got an app that lets the user click on an image button. When clicked the user can chose an image from the gallery. 
  Can someone give me an example of an SQL database storing the image path I receive in the onActivityResult method below?</p>
  
  <pre><code>public void onActivityResult(int requestCode, int resultCode, Intent data) {
         if(requestCode == PICK_FROM_FILE &amp;&amp; data != null &amp;&amp; data.getData() != null) {
             Uri uri = data.getData();
             if(uri != null) {
                Cursor cursor = getContentResolver().query(uri, new String[] {   
                                         android.provider.MediaStore.Images.ImageColumns.DATA}, 
                                         null, null, null);
                      cursor.moveToFirst();
                      String imageFilePath = cursor.getString(0);             
                      cursor.close();
  
                      if(imageFilePath != null) {
                              // HERE I WANT TO STORE IT IN THE SQL DATABASE 
                          }
             }
         }
      }
  </code></pre>