fixed 1 error
add userType when creating new user and fixed one error on DB query