added persistent db connection setting example