Implement server-side cursors
Client-side cursors can lead to memory issues on the client side. We need to have an option to have server-side cursors.
https://www.psycopg.org/psycopg3/docs/advanced/cursors.html
See issue https://git.gfz-potsdam.de/dynamicexposure/globaldynamicexposure/exposure-share/-/issues/7