Examples of using libpq