add example.py to test reading remote PostgreSQL db

Borrowed from Jacob Lynn's example, replaced connect arguments (host,
password, etc.) with reading a text file (remotedb.login). Added
*.login to .gitignore so login info is not posted to github.