fix transformed query for prepared and callable stat.

 It was replacing transformed query AFTER the invocation of prepareStatement() and prepareCall() to the actual connection.
 Fixed to replace the transformed query before the call.