Bugfix

Missing database globalization corrected. Function actually works now.
Bugfix

Removed incorrect assignment of doRegistration to a variable. It should
execute without assignment.