# Process flow from SurveyCTO to PostrgeSQL database

**URL:** <https://community.openfn.org/t/process-flow-from-surveycto-to-postrgesql-database/109>\
**Category:** Job Writing\
**Created:** [June 20, 2021, 5:06pm UTC](https://community.openfn.org/t/process-flow-from-surveycto-to-postrgesql-database/109 "2021-06-20T17:06:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ryanblumenow](https://community.openfn.org/letter_avatar_proxy/v4/letter/r/a8b319/32.png) [@ryanblumenow](https://community.openfn.org/u/ryanblumenow)\
**Post date:** [June 20, 2021, 5:06pm UTC](https://community.openfn.org/t/process-flow-from-surveycto-to-postrgesql-database/109/1 "2021-06-20T17:06:20Z")

</div>

Hi there. Wondering if we can walk through the process to connect SurveyCTO to a PostgreSQL DB I set up through [Scalegrid.io](http://Scalegrid.io).

Thanks very much!

Ryan

---

<div class="post-metadata">

**Author:** ![taylordowns2000](https://community.openfn.org/user_avatar/community.openfn.org/taylordowns2000/32/165_2.png) [@taylordowns2000](https://community.openfn.org/u/taylordowns2000)\
**Post date:** [June 21, 2021, 7:34am UTC](https://community.openfn.org/t/process-flow-from-surveycto-to-postrgesql-database/109/2 "2021-06-21T07:34:39Z")

</div>

Hi @ryanblumenow , sure thing!

First, once the data gets into your OpenFn inbox you can follow the exact same process as you did for the Kobo-to-Postgres load jobs you created earlier. You’ll need to modify the job to make sure you’re pointing at the right places in your new source data, but the general structure will be the same.

Now, in order to get data into OpenFn from SurveyCTO, you’ve got two options:

1. [Set up](https://docs.openfn.org/documentation/apps/survey-cto#real-time-with-webhooks) a webhooks service on [SurveyCTO](https://docs.surveycto.com/05-exporting-and-publishing-data/03-publishing-data-to-the-cloud/05.forms-to-webhooks.html) that will forward submissions to your OpenFn inbox (much in the same way you did on Kobo); or
2. Periodically [fetch data](https://docs.openfn.org/documentation/apps/survey-cto#periodic) from SurveyCTO, using the `language-surveycto` adaptor.

I’d recommend the first method, as it’s real-time and will require you to use fewer jobs on OpenFn. (With the fetch method, you’d need one job to fetch and then another to load to Postgres.)

Hope this helps. If you run into any troubles, please let me know!

Taylor
