added postgresql handle to gem