Changing pg version to ~>0.17 to ensure compatibility with postgres 9.3