bugfix in database api, function setConnectionName was twice