Refactor remaining database connections.

Collected all of the database connections into one resources file.
Merge pull request #16 from hogepodge/database_refactor

Refactor remaining database connections.