A self explanatory question!
Or maybe some people worked on this and have some nice example scripts, preferably for a Postgres database coupling.
If Yes-no or donno-no, I may put some things here myself, after a while.