Simplified example, using SQL binding