Connect to local postgresql database.