DB/*: reduce memory consumption by using cursors
Mode database-function: compatibility PostgreSQL <= 9.1

- plpy in PostgreSQL <= 9.1 does not implement cursors, map to execute() instead
Mode standalone: implement fake_plpy.cursor interface
Merge pull request #71 from plepe/cursors

Reduce memory consumption by using cursors