changed the db param
changed db param from userId to id