Added associations and corrected database connection
Merge pull request #2 from KevinFalank/associations

Added associations and corrected database connection