added db connect example

Added an example of a postgreSQL db connection