Updated SQL Code to include user roles