add var config to createUser() call for db