Fix #4: Add buffer and length parameters to stmt.putData()