Change the definition of PrepareStatement on IDatabaseConnection to return an out string of any tail statements on the supplied sql. Add extension functions IDatabaseConnection.PrepareStatement(sql), IDatabaseConnection.PrepareAll(sql), and IDatabaseConnection.ExecuteAll(sql).