Close database connections before exiting methods.
Merge remote-tracking branch 'upstream/develop' into dbClosing
Merge pull request #682 from alexjacks92/dbClosing

Database connections will be closed before exiting methods.