False order in processing sites_database_add
The processing order for the method sites_database_add should be changed for the following lines in remoting.in.php.
$app->sites_database_plugin->processDatabaseInsert($this);
$retval = $this->insertQueryExecute($sql, $params);
Without parameters of the insertQueryExecute the processDatabaseInsert cannot work correct. The resulting effect is, that the database has no client assigned.
This processing order is also present in the GIT/Master-Repo sites.inc.php.