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));
    }
)

```
Yes. Check out the list of [Global AJAX Event Handlers](https://api.jquery.com/category/ajax/global-ajax-event-handlers/).

e.g.

```
$(document).ajaxComplete(function() {
    alert('Triggered ajaxComplete handler.');
});

```

That said, you shouldn't need to reapply your bindings after an AJAX call. If you need to do this, you're probably doing something wrong. Check out [jQuery.on](http://api.jquery.com/on/), which explains how to bind to content which is added dynamically.