libpq examples