How to combine jQuery in-place editor with $wpdb->update

I had to load WordPress in order to use the wpdb function.
How silly :p.

To do so:

$parse_uri = explode( 'wp-content', $_SERVER['SCRIPT_FILENAME'] );
require_once( $parse_uri[0] . 'wp-load.php' );

And then finally:

global $wpdb;