at last, fixed the connection with postgresql