channel LoadDatabase {
	out database(dbs: Map, load(url: Str, user: Str, pass: Str)) = insert(dbs, url, {"user": user, "password": pass, "query": "", "result": ""})
}

channel executeQuery(url: Str) {
	out database.{url}.query(query: Str, execute(newQuery)) = newQuery
}

native channel sendQuery(url: Str) {
	in database.{url}.query(query: Str, sendQuery(newQuery)) = newQuery
}

native channel setResult(url: Str) {
	out database.{url}.result(resutlt: Str, setResult(newResult: Str)) = newResult
}