refactored the dao layer a bit and pulled out a helper to contain the connection string
[#20]