startQueryQueue();
initialize(connection);
setDbProperies(connection);
if (!isNew())
new DatabaseUpgradeAfterInitialization().start();
originalVersion = getVersion(connection);
updateVersion(connection);
// Set the database privileges for the current user. This avoids errors for upgraded modules and such.