Bugfix

Fixed a missing DB reference in doRegistration();