refactor the way database connections are handled
Merge pull request #9 from johncosta/6-database_connections

refactor the way database connections are handled