Using generated wrappers for SQL