Added code to connect to postgres db and create a table