can you show a psql session which accesses these tables, including connection string?
Not sure about the 'connection string' part but:
bustrac=# select * from activitytypes;
psql --host machine --user role --dbname somethingFor your app it might be a config file with corresponding entries, or perhaps you command line invocation?
I suspect there's a mis-match between the two.