Fraud models SQL (simulation) code