added user id to database