Main loop: bugfix postgis 2.0: add ST_ prefixes