replace DB programs with proprietary PREPARE syntax by database specific SUBROUTINEs in TDLs