- Patch #394594 by ksenzee: converted most of the user module code to the new database abstraction layer.