Question: I am programming in Android and am trying to make an SQL database to store highscores. In my `onCreate` method, I have

```
String query = "CREATE TABLE " + TABLE_SCORES + "(" +
                COLUMN_ID + " INTEGER PRIMARY KEY AUTOINCREMENT, " +
                COLUMN_SCORE + " TEXT" + ");";
db.execSQL(query);

```

where `TABLE_SCORES` is the table name and the `COLUMNS` are my columns.

When I run the app, it works the first time and saves, but crashes the second time. In the logs, it says that it was unable to compile my query. I have already tried `IF NOT EXISTS` but it did not help.

Answer: 
The answer is no.

You need the callback because that's what the method calls when the request is done.

This works with `on` method to, you might be doing something wrong out there in the code.

You could create a helper function for this.

```
function loadSomething(targetElement, uri,callback) {
    targetElement.load(uri, callback);
}

loadSomething(
    $('myElement'),
    'mylink.com/content',
    function() {
        applyBindings($(this));
    }
)

```
Try [`$.ajaxSetup`](https://api.jquery.com/jquery.ajaxsetup/):

```
$.ajaxSetup({
   complete: function() {
     ApplyBindings('#target');
   }
});

```

**EDIT**

You could also make a named function like:

```
var ajaxApplyBindings = function() {
  ApplyBindings('#Target');
  // anything else...
};

```

And then pass it to `load`:

```
$('#Target').load(callBackRedirect, ajaxApplyBindings);

```