untie the dw from updating the metrics
move postgres code to dw
remove postgres dependencies
Merge pull request #99 from kimyen/develop

Move postgres code to dw