setting up connection for postgressql