Change userId to use local database in tests