test postgresql connect