Added LICENSE
Broke out postgres specific portions to separate class