added postgresql check