Lowercase key.
Added Pooling and ConnectionLifetime.
Code formatting.
Opening connection when needed.