- slight tidying up of the stored procedure parser