Await
Database functions which provide the result to a callback also support the await keyboard. The script will basically pause until the database returned the result. The function in which you use await must be marked async. An example:
async function onUpdated() {
// The old way using a callback
DB.loadplayer(1, pl => { echo("callback: " + pl.name); });
// New way using await
let pl = await DB.loadplayer(1);
echo("await: " + pl.name);
}