postgresql connection best practices for reliable high-performance applications | pilput