Added postgres tests
Cleanup
Made makefile build static lib as well