schema generation for stored procedures