Boilerplate for stored procedure handler