updated sql user id stuff