Check user exists in mysql script