Remove pg submodule and add it as a dependency