Fix user syncdb. Refs #342