Release inactive connections to pool
Merge pull request #8 from JamesGlover/fix_database_connection_issues

Release inactive connections to pool